using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DebugCalHeight : MonoBehaviour
{
    [SerializeField]
    Transform up, down;

    // Start is called before the first frame update
    void Start()
    {
        float dy = up.position.y - down.position.y;
        float halfUp = up.GetComponent<Renderer>().bounds.size.y / 2f;
        float halfDown = down.GetComponent<Renderer>().bounds.size.y / 2f;
        Debug.Log($"height:{dy - halfDown - halfUp}");
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
